<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="businessList.title"/></title>
    <meta name="heading" content="<fmt:message key='businessList.heading'/>"/>
    <meta name="menu" content="BusinessMenu"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/businessform.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="businessList" cellspacing="0" cellpadding="0" requestURI=""
    id="businessList" pagesize="25" class="table businessList" export="true">

    <display:column property="id" escapeXml="true" sortable="true"
        url="/businessform.html" paramId="id" paramProperty="id" titleKey="business.id"/>
    <display:column property="businessName" escapeXml="true" sortable="true" titleKey="business.businessName"/>
    <display:column property="businessAddress1" escapeXml="true" sortable="true" titleKey="business.businessAddress1"/>

    <display:setProperty name="paging.banner.item_name" value="business"/>
    <display:setProperty name="paging.banner.items_name" value="people"/>

    <display:setProperty name="export.excel.filename" value="Business List.xls"/>
    <display:setProperty name="export.csv.filename" value="Business List.csv"/>
    <display:setProperty name="export.pdf.filename" value="Business List.pdf"/>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("businessList");
</script>